﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SDT.Libraries.DuplicateDetection
{
    public class Article : IArticle
    {
        #region member
        public int ArticleID { get; set; }
        public int OtherArticleID { get; set; }
        public double Rate { get; set; }
        public string Title { get; set; }
        public string Sumary { get; set; }
        public DateTime Dt { get; set; }


        #endregion

        #region Constructor

        public Article()
        { }

        public Article(int articleID, int otherArticleID, string title,
        string sumary, DateTime dt)
        {
            OtherArticleID = otherArticleID;
            ArticleID = articleID;
            Title = title;
            Sumary = sumary;
            Dt = dt;
        }

        public Article(int articleID, Detect detect)
        {
            ArticleID = articleID;
            //get from detect
            OtherArticleID = detect.ArticleID;
            Rate = detect.Rate;
        }

        #endregion
    }


}
